<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="applyForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                <em style="color: red;font-style: normal;">*</em>
                                用户名称：
                            </label>
                            <div class="col-sm-8">
                                <input id="userName" name="userName" title="" class="hidden">
                                <select id="userId" name="userId" data-placeholder="选择用户" title=""
                                        class="form-control chosen-select" style="width: 100%">
                                    <option value="">请选择用户</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">
                                <em style="color: red;font-style: normal;">*</em>
                                一级指标：
                            </label>
                            <div class="col-sm-8">
                                <input id="typeName" name="itemOneName" title="" class="hidden">
                                <select id="typeId" name="itemOne" data-placeholder="选择一级指标" title=""
                                        class="form-control chosen-select" style="width: 100%">
                                    <option value="">请选择指标</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">

                            <label class="col-sm-3 control-label">
                                <em style="color: red;font-style: normal;">*</em>
                                二级指标：
                            </label>
                            <div class="col-sm-8">
                                <input id="itemOneId" name="itemTwo" title="" class="hidden">
                                <input id="itemOneName" name="itemTwoName" title="" class="hidden">
                                <textarea id="itemName"
                                          class="form-control" type="text" style="cursor: pointer;"
                                          onclick="openAppraisal()" readonly="readonly" placeholder="二级指标"></textarea>
                                <input id="itemTwoId" name="itemThree" title="" class="hidden">
                                <input id="itemTwoName" name="itemThreeName" title="" class="hidden">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">指标数量：</label>
                            <div class="col-sm-8">
                                <input id="amount" name="amount" class="form-control" placeholder="默认指标数量为1"
                                       title="默认指标数量为1" type="number">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">备注信息：</label>
                            <div class="col-sm-8">
                                <textarea id="remark" name="remark" class="form-control"
                                          title="" type="text" value=""></textarea>
                            </div>
                            <input type="text" title="" name="dataId" id="dataId" class="hidden">
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="button" onclick="addApplyData()" class="btn btn-danger">添加材料</button>
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script th:src="@{/appjs/yw/appraisalApply/applyAdd.js}">
</script>
</body>
</html>
